package edu.unc.comp410.colemangeer.model;


public final class FlatDiscountRule extends DiscountRule {

	private final double amountOff;
	
	public FlatDiscountRule(double amountOff){
		//TODO: validate
		this. amountOff = amountOff;
	}
	
	@Override
	public double applyDiscount(double price) {
		// TODO validate
		return price - amountOff;
	}

}
